package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/****
 * 告警人员表
 * @author sc
 *
 */
@Entity
@Table(name = "m_warn_member")
public class MWarnMember implements java.io.Serializable {

	// Fields
	private Long id;// ID
	private Integer warnlevel;
	private String username;
	private String userphone;
	private Integer updatetype;
	private Date updatetime;

	// Constructors

	/** default constructor */
	public MWarnMember() {
	}

	
	@GeneratedValue(generator="generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity") 
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	@Column(name = "warnlevel")
	public Integer getWarnlevel() {
		return this.warnlevel;
	}

	public void setWarnlevel(Integer warnlevel) {
		this.warnlevel = warnlevel;
	}

	@Column(name = "username", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "userphone", unique = false, nullable = false, insertable = true, updatable = true, length = 20)
	public String getUserphone() {
		return this.userphone;
	}

	public void setUserphone(String userphone) {
		this.userphone = userphone;
	}

	@Column(name = "updatetype", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updatetime", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

}